home *** CD-ROM | disk | FTP | other *** search
- Path: nntp-trd.UNINETT.no!usenet
- From: Vegard Bakke <vegard3@kihdata.kih.no>
- Newsgroups: comp.unix.programmer,comp.lang.c++
- Subject: [Q] Useing files as semaphores.
- Date: Mon, 26 Feb 1996 17:58:20 +0100
- Organization: UNINETT news service
- Message-ID: <3131E6AC.5925@kihdata.kih.no>
- NNTP-Posting-Host: tott.kih.no
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/720)
-
- I'm programming C++ on HP-UX 9.05 useing the compiler CC.
- I have a synchornice problem that would do best without any
- deamons.
-
- Is ofstream::open(FileName,ios::noreplace) an atomic action?
- Is it possible for two programs to open and create the same
- file? Or is it just buffering or cacheing it away in the
- memory in some way?
-
- In other words, is it possible to use open w/noreplace as
- a semaphore? Is it the compilers responsibillity or the OS?
-
- Please respond if you know something.
-
-
- Vegard
- --
- _________________________________________________________________________
- | snailto: Vegard Bakke, Kirkegata 9, 3600 Kongsberg, Norway
- |
- | mailto:vegard3@kihdata.kih.no http://knoll.kih.no:8001/stud/vegard3
- |
- | no.test er best |
-